// import { ElMessage } from "element-plus";

export default {
    name: "ArticleApi",
    getArticleList(app, pageSize, pageNumber) {
        return app.$http({
            url: "/articleBack/list?pageSize=" + pageSize + "&pageNumber=" + pageNumber,
            method: "GET",
        });
    },

    deleteArticle(app, id) {
        return app.$http.delete("/articleBack/" + id)
    },
    saveOrUpdate(app, article) {
        return app.$http({
            url: "/articleBack/saveOrUpdate",
            data: JSON.stringify(article),
            method: "POST",
        });
    }
};